package spring.AOPDemo.BeforeAdviceTest;

import org.springframework.aop.AfterReturningAdvice;

import java.lang.reflect.Method;

public class AfterAdvice implements AfterReturningAdvice {
    /*
    o：目标类返回实例
    method:目标方法
    objects:传入方法的参数
    o1：目标类实例
     */
    public void afterReturning(Object o, Method method, Object[] objects, Object o1) throws Throwable {
        System.out.println("谢谢惠顾~");
    }
}
